import java.io.IOException;

class ex_5_4{
	public static void title(){
		System.out.println("**** call by value 사용 메서드호출 ****");
		System.out.println("****    정보통신전자공학부         ****");
		System.out.println("****     20052426 장수은         ****");
	}
	public static void sw1(int x, int y){
		System.out.println(" before switching x : " + x + " y: " + y);
		int tmp;
		tmp = x;
		x = y;
		y = tmp;
		System.out.println(" after switching x : " + x + " y: " + y);
		
	}
	public static void main(String args[]) throws IOException{
		title();
		int x;
		int y;
		System.out.println(" type the num you wish to switch");
		x=System.in.read() - '0';
		System.out.flush();
		y=System.in.read() - '0';
		sw1(x,y);
		
	}
	
}